package my.design.adapter.service;

import com.alibaba.fastjson.JSONObject;
import my.design.adapter.mq.create_account;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author zp
 * @version 1.0
 * @description: Mq接收消息实现
 * @date 2022/10/7 16:26
 */
public class create_accountMqService {
    private final Logger logger = LoggerFactory.getLogger(create_accountMqService.class);

    public void onMessage(String message) {
        create_account mq = JSONObject.parseObject(message,
                create_account.class);
        logger.info("创建订单商家，查询⽤用户的订单： {}", mq);
    }
}
